/*
 * BinTree.h
 *
 *  Created on: 2014年6月10日
 *      Author: rock
 */

#ifndef BINTREE_H_
#define BINTREE_H_
#include "TreeNode.h"

class BinTree {


};

//构造多层的二叉树.
TreeNode * BuildBinaryTree(TreeNode* root = NULL, int level = 6);
int CalcTreeDepth(TreeNode* root );


void PreOrderTree(TreeNode * root);
void PreOrderTreeIterater(TreeNode * root);

void MidOrderTree(TreeNode * root);
void MidOrderTreeIterater(TreeNode * root);

void PostOrderTree(TreeNode * root);
void PostOrderTreeIterater(TreeNode * root);

void LevelOrderTree(TreeNode *root);
#endif /* BINTREE_H_ */
